.class Lcom/waiqin365/lightwork/tracker/ar;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/baidu/mapapi/map/BaiduMap$OnMarkerClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightwork/tracker/ao;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightwork/tracker/ao;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightwork/tracker/ar;->a:Lcom/waiqin365/lightwork/tracker/ao;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onMarkerClick(Lcom/baidu/mapapi/map/Marker;)Z
    .locals 5

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/ar;->a:Lcom/waiqin365/lightwork/tracker/ao;

    iget-object v0, v0, Lcom/waiqin365/lightwork/tracker/ao;->b:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/BaiduMap;->getMapStatus()Lcom/baidu/mapapi/map/MapStatus;

    move-result-object v0

    iget v0, v0, Lcom/baidu/mapapi/map/MapStatus;->zoom:F

    const/high16 v1, 0x41200000    # 10.0f

    cmpl-float v0, v0, v1

    if-lez v0, :cond_1

    invoke-virtual {p1}, Lcom/baidu/mapapi/map/Marker;->getZIndex()I

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/ar;->a:Lcom/waiqin365/lightwork/tracker/ao;

    iget-object v1, v1, Lcom/waiqin365/lightwork/tracker/ao;->e:Ljava/util/Map;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/ar;->a:Lcom/waiqin365/lightwork/tracker/ao;

    iget-object v1, v1, Lcom/waiqin365/lightwork/tracker/ao;->e:Ljava/util/Map;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "id:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    if-eqz v1, :cond_0

    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    const/16 v2, 0x123

    iput v2, v1, Landroid/os/Message;->what:I

    iput-object p1, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    iput v0, v1, Landroid/os/Message;->arg1:I

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/ar;->a:Lcom/waiqin365/lightwork/tracker/ao;

    iget-object v2, v2, Lcom/waiqin365/lightwork/tracker/ao;->e:Ljava/util/Map;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "id:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-interface {v2, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    iput v0, v1, Landroid/os/Message;->arg2:I

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/ar;->a:Lcom/waiqin365/lightwork/tracker/ao;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/ao;->c(Lcom/waiqin365/lightwork/tracker/ao;)Lcom/waiqin365/lightwork/tracker/ax;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/tracker/ax;->sendMessage(Landroid/os/Message;)Z

    :cond_0
    :goto_0
    const/4 v0, 0x1

    return v0

    :cond_1
    invoke-static {}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->zoomIn()Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/ar;->a:Lcom/waiqin365/lightwork/tracker/ao;

    iget-object v1, v1, Lcom/waiqin365/lightwork/tracker/ao;->b:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    invoke-virtual {p1}, Lcom/baidu/mapapi/map/Marker;->getPosition()Lcom/baidu/mapapi/model/LatLng;

    move-result-object v0

    invoke-static {v0}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->newLatLng(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/ar;->a:Lcom/waiqin365/lightwork/tracker/ao;

    iget-object v1, v1, Lcom/waiqin365/lightwork/tracker/ao;->b:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    goto :goto_0
.end method
